<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- 单选框 -->
        <label id="agree">
            <input id="agree" type="checkbox" v-model="isAgree">同意并阅读协议
        </label>
        <br>
        <button :disabled="!isAgree">下一步</button>
        <hr>
        <label>
            <input type="checkbox" name="hobby" id="" value="篮球" v-model="hobby">篮球
        </label>
        <label>
            <input type="checkbox" name="hobby" id="" value="足球" v-model="hobby">足球
        </label>
        <label>
            <input type="checkbox" name="hobby" id="" value="排球" v-model="hobby">排球
        </label>
        <label>
            <input type="checkbox" name="hobby" id="" value="铅球" v-model="hobby">铅球
        </label>
        <h1>您的爱好是：</h1>
        <h1 v-for="item in hobby">{{item}}</h1>
    </div>
</body>
<script src="../js/http_cdn.bootcdn.net_ajax_libs_vue_2.6.6_vue.js"></script>
<script>
    new Vue({
        el: "#app",
        data: {
            isAgree: false,
            hobby:['篮球','足球']
        },
    })
</script>

</html>
